package com.freedom.ums.finance.infrastructure.persistence.repository;

import com.freedom.ums.finance.domain.repository.WalletRepository;
import com.freedom.ums.finance.infrastructure.persistence.mapper.WalletMapper;
import com.freedom.ums.finance.infrastructure.persistence.pojo.bo.WalletBO;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class WalletRepositoryImpl implements WalletRepository {

    private final WalletMapper walletMapper;

    @Override
    public void saveWallet(WalletBO walletBO) {
        walletMapper.insertWallet(walletBO);
    }
}
